6cf7f3e3d118c64393254902e7142e4bcc2b5426,hazelcast-client/src/test/java/com/hazelcast/client/ClientAuthenticationTest.java,ClientAuthenticationTest,testAuthenticationWithCustomCredentials,#,48
Before Change
// make sure there are no credentials sent over the wire
clientConfig.getSecurityConfig().setCredentials(new CustomCredentials());
hazelcastFactory.newHazelcastClient(clientConfig);
}
private class CustomCredentials extends UsernamePasswordCredentials {
After Change
// make sure there are no credentials sent over the wire
clientConfig.getSecurityConfig().setCredentials(new CustomCredentials());
HazelcastInstance hazelcastInstance = hazelcastFactory.newHazelcastClient(clientConfig);
// ensure client opens a connection to all nodes
IMap<Integer, Integer> map = hazelcastInstance.getMap(randomName());
for (int i = 0; i < 100; i++) {
map.put(i,i);
}